using System;
using System.Windows.Data;
using Samurai.DAL;

namespace Samurai.Client.Converters
{
    public class GenreTitleToImageConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return GenreImageProvider.Instance.GetImageLink(value.ToString());            
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}